package com.example.day04;

public class Test {

    private int i; //私有的
    double d;  // 默认的
    protected boolean b;  // 受保护的
    public String s;  //共有的

    public static void main(String[] args) {
        Test t = new Test();
        t.i = 1;
        t.b = false;
    }

    // super();
    // super.test();
}

class A {}

class B extends A {


    public static void main(String[] args) {
//        B b = new B();
        A b = new A();
        System.out.println(b instanceof B);
        System.out.println(b instanceof A);

        Test t = new Test();
//        t.i = 1;
        t.d = 1D;
        t.b = true;
        t.s = "hi";
    }
}
